/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_BEVERAGE_H
#define DESIGNPATTERN_BEVERAGE_H


#include <string>

namespace Decorator {

    /**
     * 所有饮料的基类
     */
    class Beverage {
    public:
        std::string description = "Unknown Beverage";

        virtual const std::string getDescription() const { return this->description; }

        virtual double cost() = 0;

        ~Beverage() = default;
    };

} // Decorator

#endif //DESIGNPATTERN_BEVERAGE_H
